From: Sebastian Keller Date: Sat, 13 Feb 2021 20:13:57 +0000 (+0100) Subject: st/scroll-view-fade: Fix vertical top fading X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~352 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2501bc5c8f97581a3ea1bb141feb5c721a316de7;p=gnome-shell.git st/scroll-view-fade: Fix vertical top fading The fade for the vertical top edge was calculating the fade ratio for a larger height (up to where the bottom fade starts) than it was displaying. Part-of: --- diff --git a/src/st/st-scroll-view-fade.glsl b/src/st/st-scroll-view-fade.glsl index 2eacfd9af..e3f1a259f 100644 --- a/src/st/st-scroll-view-fade.glsl +++ b/src/st/st-scroll-view-fade.glsl @@ -55,7 +55,7 @@ void main () float vfade_scale = height / vfade_offset; if (fade_top) { - ratio *= (fade_area_topleft[1] - y) / (fade_area_topleft[1] - fade_bottom_start); + ratio *= (fade_area_topleft[1] - y) / (fade_area_topleft[1] - fade_top_start); } if (fade_bottom) {